package data.vip;

import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;

import data.List;
import data.ListInter;
import data.ListInterIterator;
import data.operation.FileOperation;

public class VipList implements ListInter{
	private ArrayList<Vip> viplist;
	private String filename;
	private FileOperation one;
	
	public VipList(){
		one=new FileOperation(filename);
		viplist=one.readFile().toArray();
	}
	
	public VipList(String filename){
		this.filename=filename;
		one=new FileOperation(filename);
		viplist=one.readFile().toArray();
	}
	
	private void write() throws IOException{
	}

	@Override
	public Object idFind(String id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void add(Object oj) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void delete(String ID) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void alter(Object oj) {
		// TODO Auto-generated method stub
		
	}

	public Iterator findbykey(String key, String message) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public ListInterIterator get() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public ListInterIterator findByKey(String key, String message) {
		// TODO Auto-generated method stub
		return null;
	}
	



	

	

}
